// $Id$
// Licensed under Apache License Version 2.0
// See: http://www.apache.org/licenses/LICENSE-2.0.html
package de.servicezombie.tcmdb.dao.mongo;

import org.springframework.data.mongodb.core.mapping.DBRef;


public class MongoPerson extends AbstractMongoObject implements MongoDomainObject {

	private String id;
	private String revision;

	private String name;
	private int age;

	@DBRef
	private MongoAddress address;

	public void setAddress(MongoAddress address) {
		this.address = address;
	}

	public MongoAddress getAddress() {
		return address;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRevision() {
		return revision;
	}

	public void setRevision(String revision) {
		this.revision = revision;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
